package com.ecut.property_project.model.room;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class RoomPurpose {
    private Integer purposeId;

    /**
    * ！*用途编码
    */
    private String purposeCode;

    /**
    * ！*用途名称
    */
    private String purposeName;

    /**
    * 用途开始日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date startDate;

    /**
    * *用途结束日期
    */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date endDate;

    /**
    * ！*状态（历史/当前）
    */
    private Object timeStatus;

    /**
    * 备注
    */
    private String note;

    /**
    * 表头
    */
    private String headId;

    public Integer getPurposeId() {
        return purposeId;
    }

    public void setPurposeId(Integer purposeId) {
        this.purposeId = purposeId;
    }

    public String getPurposeCode() {
        return purposeCode;
    }

    public void setPurposeCode(String purposeCode) {
        this.purposeCode = purposeCode;
    }

    public String getPurposeName() {
        return purposeName;
    }

    public void setPurposeName(String purposeName) {
        this.purposeName = purposeName;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Object getTimeStatus() {
        return timeStatus;
    }

    public void setTimeStatus(Object timeStatus) {
        this.timeStatus = timeStatus;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getHeadId() {
        return headId;
    }

    public void setHeadId(String headId) {
        this.headId = headId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", purposeId=").append(purposeId);
        sb.append(", purposeCode=").append(purposeCode);
        sb.append(", purposeName=").append(purposeName);
        sb.append(", startDate=").append(startDate);
        sb.append(", endDate=").append(endDate);
        sb.append(", timeStatus=").append(timeStatus);
        sb.append(", note=").append(note);
        sb.append(", headId=").append(headId);
        sb.append("]");
        return sb.toString();
    }
}